import { zrRequestFile, zrRequest } from './index'

export function getFileJson(url) {
  let token = wx.getStorageSync('token')

  return zrRequestFile.get({
    url: `${url}?Authorization=Bearer ${token}`
  })
}

// export function getFileBlob(url){
//   let token = wx.getStorageSync('token')

//   return zrRequestFile.get({
//     url: `${url}?Authorization=Bearer ${token}`,
//     responseType: 'blob',
//   })
// }

export function getFileZip(data){
  return zrRequest.post({
    url: "vehicleDetect/minProgram/getZipContent",
    data
  })
}

